<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<script type="text/javascript">
function showRightMenu(event){
  	var tempFlat=parent.isShowButtom();
  	if(tempFlat=='true'){
  		ShowContextMenu(event,'quick_rightmenu');
  	}
}
function openNoteDetail(noteId){
		var url = "${ctx}/charge_noteAction.do?method=initNoteDetail";
		var param = "&noteId=" + noteId;
		top.windowOpen(url+param,"noteDetail","${key.charge_requisitionList_detail}",690,800);
	}
function resize(){
	parent.window.document.all('requistionListFrame').style.height=document.body.scrollHeight;
}

function openDetailPage(noteId){
		var url = "${ctx}/charge_noteAction.do?method=initNoteDetail&flag=0&noteId="+noteId;
   		top.windowOpen(url, "noteDetail", "详细资料", 580, 810,true,"noteDetailIfm");
}
</script>
</head>
<body onload="resize();">

<div style="overflow:auto; height:270px;">

<ec:ceTable     items="noteList"
				action="${ctx}/charge_cashieringAction.do?method=requestRequistionList"
				var="note"
				view="pmsview"
				styleClass="gridData2"
				rowsDisplayed="10">
				<ec:ceRow styleClass="grid"  onclick="parent.currenNoteId='${note.noteId}';
											          parent.currentHouseNumber='${note.houseName}';
											          parent.currentPeriodId='${note.periodId}';
											          parent.currentStatus='${note.validity}';"
											 ondblclick="openDetailPage('${note.noteId}');"
											 onContextMenu="showRightMenu(event);" >
					<ec:ceColumn property="period"  headerCell="pmsHeadrCell" width="15%" title="${key.charge_requisitionList_period}"></ec:ceColumn>
					<ec:ceColumn property="requisitionNum"  headerCell="pmsHeadrCell"  width="15%"  title="${key.charge_requisitionList_requisitionNum}"></ec:ceColumn>
					<ec:ceColumn property="totalAmt" cell="currency" format="###,###,###0.00" headerCell="pmsHeadrCell"   width="10%" title="${key.charge_requisitionList_totalAmt}"></ec:ceColumn>
					<ec:ceColumn property="validityStr"   headerCell="pmsHeadrCell"   width="10%" title="${key.charge_requisitionList_validityStr}"></ec:ceColumn>
				</ec:ceRow>
				<ec:parameter name="houseId" value="${houseId}"></ec:parameter>
				<ec:parameter name="isVirtual" value="${isVirtual}"></ec:parameter>
				<ec:parameter name="periodId" value="${queryVO.periodId}"></ec:parameter>
				<ec:parameter name="requisitionNum" value="${queryVO.requisitionNum}"></ec:parameter>
				<ec:parameter name="validity" value="${queryVO.validity}"></ec:parameter>
</ec:ceTable>

</div>

<div id="quick_rightmenu" style="display:none;"  oncontextmenu="return false" class="quick_rightmenu"onMouseOver="MM_showHideLayers('quick_rightmenu')"  onMouseOut="MM_showHideLayers('quick_rightmenu')">
<table width="100%" border="0" cellpadding="1" cellspacing="0" class="grid_quickMenu_bg">
	<tr>
      <td><table width="100%" border="0" cellpadding="2" cellspacing="0">
     	  <tr>
		   <td class="hrpading"></td>
          </tr>
          <pms:AuthTag authName="menu.nopage.common.buildNotesAnew.two">
            <tr>
		  <td class="quickMenu_toolbarico"><a href="#"  onclick="parent.openBuildAnewForOne();return false;" onFocus="this.blur()"><img src="${ctx}/images/ico_charge_cxsc.gif" alt="${key.charge_requisitionList_reDefine}" width="16" height="16" border="0" align="absbottom"/>&nbsp;${key.charge_requisitionList_reDefine}</a> </td>
          </tr>
          </pms:AuthTag>
          <tr>
          <td class="quickMenu_toolbarico"><a href="#" onclick="parent.openPrintSingleton(this);" onFocus="this.blur()"><img src="${ctx}/images/ico_printer.gif" alt="${key.charge_requisitionList_print}" width="16" height="16" border="0" align="absbottom"> ${key.charge_requisitionList_print}</a></td>
          </tr>
      </table></td>
    </tr>
  </table>
 <script type="text/javascript">

	var div1=document.getElementById('quick_rightmenu');
	if(div1.getElementsByTagName("tr").length==2){
	div1.innerHTML="";
	}
</script>
</div>

</body>
</html>
